package com.hn658.user.core.dao.db;

import java.util.List;
import java.util.Map;

import com.hn658.framework.dataaccess.mybatis.IMyBatisBaseDAO;
import com.hn658.framework.dataaccess.pagination.GenericPage;
import com.hn658.user.common.entity.UserInfoEO;

public interface IUserInfoDBDAO extends IMyBatisBaseDAO<UserInfoEO, Long>{

	/**
	 * 根据权限id查询用户id
	 * @param functionId
	 * @return
	 */
	public List<Long> selectUserIdByFunctionId(Long functionId);

	/**
	 * 根据角色id查询用户id
	 * @param roleId
	 * @return
	 */
	List<Long> selectUserIdByRoleId(Long roleId);
	
	/**
	 *  <p>查询分配到此应用的所有用户</p>
	 * @param queryMap
	 * @param limit
	 * @param start
	 * @param sortBy
	 * @param isAsc
	 * @return
	 */
	public GenericPage<UserInfoEO> selectAppUser(Map<String, Object> queryMap,
			int limit, int start, String sortBy, boolean isAsc);
}
